package com.zut.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zut.entity.OrderInfo;
import com.zut.enums.OrderStatus;

import java.util.List;

public interface OrderInfoService extends IService<OrderInfo> {

    OrderInfo createOrderByProductId(Long productId);

    //保存二维码
    void saveCodeUrl(String orderNo,String codeUrl);

    // 获取所有订单信息
    List<OrderInfo> listOrderByCreateTimeDesc();

    // 根据订单编号 来更新订单状态
    void updateStatusByOrderNo(Object orderNo, OrderStatus orderStatus);

    //获取订单状态
    String getOrderStatus(Object orderNo);
}